@Override
 public int write(ByteBuffer byteBuffer) throws IOException {
   fs.ensureHasSpace();
   return inner.write(byteBuffer);
 }
 @Override
 public long write(ByteBuffer[] byteBuffers, int i, int i1) throws IOException {
   fs.ensureHasSpace();
   return inner.write(byteBuffers, i, i1);
 }
 @Override
 public int write(ByteBuffer byteBuffer, long l) throws IOException {
   return inner.write(byteBuffer, l);
 }