added ub_write_block (without checksum support)