write is located in:
m3core/src/runtime/FreeBSD3/write.c
m3core/src/runtime/FreeBSD4/write.c