write(): support for position