use a static FileFd::Write overload to reduce duplication of write()-retry code