Under the laws of all states in this country, if there is a valid sublease as you seem to have, unless there is a written agreement signed by the tenant who is subleasing out the unit to a third person, the owner of the unit (main landlord) is not entitled to money that the sub-tenant owes the sub-landlord (you) based upon the facts that you have written.What the owner of the unit is doing is not allowed under the laws of all states in this country absent a written agreement to the contrary.