Related Beal has bought a 347-unit apartment complex in Mattapan and changed the homes from market-rate to income-restricted.