Not knowing the acid you're using, it's hard to answer the question. But, the best way to make clean esters, with no water problems, is to first make the acid chloride and then CAREFULLY add it, with ice-bath cooling, to the alcohol. It'll give off lots of HCl gas (do it in the hood), but when you're done, a simple distillation should give you stuff that's very pure.