block: switch blk_write_compressed() to byte-based interface