A joint venture has acquired a nearly 41,000-square-foot medical office building and an adjacent parking garage in downtown Montclair for $17.9 million, in a deal arranged by CBRE.