You're all contractually obligated to pay rent to the landlord. Your roommate's early departure doesn't change that obligation. You may be able to recover your former roommate's share of rent through a small claims action. You may be able to convince your landlord to change his mind, and accept a sublease to a fourth roommate.

