mes: Add write, core:write.