A Massachusetts nursing home operator has filed for bankruptcy over tens of millions in unpaid bills from a variety of vendors after selling several nursing homes in the state.