Patent attributes
A data storage device including a flash memory and a controller is provided. The flash memory has a plurality of TLC blocks, each of which includes a plurality of pages. The controller checks whether any of the TLC blocks was undergoing a write operation and unfinished at the time that the power-off event occurred when the data storage device resumes operation after a power-off event. When a first TLC block was undergoing the write operation and unfinished at the time that the power-off event occurred, the controller further checks whether data stored in a page which was the last one being written in the first TLC block can be successfully read, and continues to write the remaining data into the first TLC block when the data of the page which was the last one being written in the first TLC block can be successfully read.