write blocks