1. A method of writing to a target memory page of a memory including an initial memory page having allocated thereto a marking memory containing information indicating whether a content of the initial memory page is written correctly to the target memory page, the method comprising: determining whether the target memory page comprises an error; if the target memory page comprises an error, erasing the target memory page; if the marking memory of the initial memory page indicates that the target memory page is not written, writing the target memory page based on the initial memory page; if the target memory page is written correctly, changing the marking memory allocated to the initial memory page, so that the marking memory indicates that the target memory page is written correctly; and if the marking memory of the initial memory page indicates that the target memory page is written correctly, erasing the initial memory page.