A semiconductor device includes a controller which operates if a request
is made that data be written in a certain area in a first block in a
semiconductor memory having a predetermined erase block size in which
data has already been written, to write the data requested to be written,
in a leading area in a second block from which data has already been
erased, regardless of a value of an address of the certain area.