Apple has grabbed a big Cupertino office building in a real estate deal that points to the tech titan's expansion mode.