fix wrong data writted to block device.