Patent ID: 8250292

Claim:
A data writing method, for writing data from a host system into a flash memory chip, wherein the flash memory chip includes a plurality of physical blocks and each of the physical blocks has a plurality of physical page addresses, the data writing method comprising: configuring a plurality of logical page addresses; grouping the logical page addresses into a plurality of logical blocks; recording a data dispersion degree of each of the logical blocks, wherein the data dispersion degree of the logical block is the number of the physical blocks stored data belonging to the corresponding logical block; receiving write-in data from the host system, wherein the write-in data is written into a first logical page address, the first logical page address belongs to a first logical block, the first logical page address is one of the logical page addresses, and the first logical block is one of the logical blocks; obtaining a first physical page address, wherein the first physical page address is one of the physical page addresses; and writing the write-in data into the flash memory chip according to the data dispersion degree of the first logical block and the first physical page address, wherein the data dispersion degree of each of the logical blocks is not larger than a logical block data dispersion degree threshold value.