A California real estate investment trust has plunked down $332.5 million for a year-old office and lab building in Cambridge, Massachusetts, in a deal that illustrates how the surging local biotech industry is slowly spreading out from its traditional neighborhood and changing the area's DNA.