An investor has sold a 10,000-square-foot medical office building in West Orange for $2.5 million, brokers with NAI James E. Hanson announced Thursday.