Add function `write` in `storage` module.