It is wrong to tell the OS that a block is not going to be accessed and write to it immediately afterwards.
Attach a file by drag & drop or click to upload