update data saving to block.writeData