The disclosed embodiments provide for a system and method for storing data
in a flash memory device that has a code bank and a data bank. The method
includes writing data to the data bank under control of a flash driver in
the code bank when sufficient space is expected to exist in the data
bank. Otherwise, the method includes writing data to the code bank under
control of a flash driver in a storage device that is external to the
flash memory device.