A method controls write/erase operations in a memory device including
memory blocks that are exposed to wear as a result of repeated erasures.
The method includes: storing the erase counts of the memory blocks,
creating a chain storing the erase counts of the memory blocks that are
available for writing at a certain instant of time, and selecting for
writing, out of the blocks in the memory device available for writing,
the block having the lowest erase count in the chain.