A medical practice has purchased a nearly 6,200-square-foot office building in Berkeley Heights, under a newly completed transaction by NAI DiLeo-Bram & Co.