mkfs-simplefs: write content of memory not addr (and drop extra casts)