write data block