[minor] Added support for `write` callbacks