fix put/batch bug in WriteStream#_process()