fix buffer concating in ByteBufferBackedOutputStream