/dev/mem: remove the "written" variable in write_kmem()