A joint venture has sold a repositioned, 95,000-square-foot medical office building in Bridgewater after securing a lease with one of the state’s largest health care networks.