ok ho risolto usando il metodo flush() in ObjectOutputStream.

Grazie mille a tutti (soprattutto a AndBin :P)