I guess that the methoxy is a good leaving group because of the electronegative oxygen. When the carboanion approaches the ester, the electrons are even more pushed to the CH3O- group, so it leaves the molecule.
It would be then without a hemiketal, and as I look at your mechanism it is first SN2 and then a nucleophilic addition followed by hydrolysis.