It depends on the province you are in. The house you bought is sold before the mortgage loan is paid off, and your mortgage is transferred to the buyer. This is called remortgage. In some cities, remortgage is already available. banned (e.g. Shanghai). What it means is that you must first pay off the original loan of 150,000, then sell it, and the seller will refinance it.
If remortgage is allowed in your area, it depends on whether the market price of your house is worth 400,000. If you are buying and selling between father and son, the bank may review it more carefully. I'm afraid that if you don't cash out improperly, you will maliciously raise the house price.
Even if the transaction is completed and you get the cash as you wish (it may be less than 100,000, and you need to pay various taxes on the transfer), there is another thing that should attract your attention. After the transfer , the property legally belongs to your father. If you have brothers and sisters, will there be any property rights disputes in the future? And next time you want to transfer the property back to your name, you will have to pay various taxes.