A storage medium having stored therein computer software, in a computer-readable format, described so as to execute, on a computer system, a data management method on a system in which single transaction is guaranteed, the method comprising:
- providing a memory area of the system with one or more data blocks for writing a user data thereto and control information for managing each data block,
- performing a rewrite operation in a single transaction by performing the rewrite operation en bloc when a sum of control information relating to rewriting a data block is equal to or less than an allowable rewritten data size, and
- performing a rewrite operation in a single transaction by dividing the control information, in a linked order, into a plurality of groups, each of which can be rewritten in a single transaction, when the sum of the control information relating to rewriting the data block exceeds the allowable rewritten data size, and writing information that enables continuing performance of the following transaction into an end control information even if the rewrite operation is interrupted.