vvnotw

Results 2 issues of vvnotw

It happend in this situation: 1. call Batch.Cancel() 2. wu.cancelling is set in cancelWithError() 3. wu.writing is set in Queue() now, wu.done is never closed, batch will wait forever

Signed-off-by: vvnotw