write accepts a callback last time I checked.