added sys.memory.write, sys.memory.write.block