riting means for performing two writing actions such as a first writing action shifting the electric resistance of the variable resistance element from the first state to the second state by applying a predetermined first voltage between both ends of the memory cell and a predetermined gate potential to a gate of the cell access transistor, and a second writing action shifting the electric resista