jca: better handling of long writes