write into ram