Ensure buffer in bio_writer_t is properly increased