Yeah, CC is right. The rules state you can retreat to a sea zone that does not contain enemy units. Clearly if the battle has not been resolved then there are enemy units.
A point of interest is that the defender can retreat into the sea zone from which the attack was launched provided there is no other enemy units in it.
BB