This is an oversimplification. In some cases, the debtor (and hence the bankruptcy estate) may share ownership of property with someone else who has not filed a bankruptcy (e.g. two parties hold a fee simple as co-tenants), in which case the amount of the creditor's allowed secured claim is no greater than the value of the estate's interest in the collateral.