Disclaimer: The materials provided below are informational and should not be relied upon as legal advice.
The other attorney is correct that you generally do not have a right to borrow against security deposit. However, your description raises an issue of whether the landlord took an excessive amount of security deposit from you. You did not specify which city you reside in, so I can not tell if any local rent control laws may apply to you. Looking at general California law, Section 1950.5(c) of the California Civil Code limits "security deposit" amount to two months' rent (for unfurnished residential property) or three months' rent (for furnished residential property), unless there is special circumstances (e.g. tenant will have a waterbed, landlord will be doing alterations at tenant's request, landlord and tenant agree to a larger deposit amount, etc.). Please be sure to consult your own attorney to protect your legal rights.