write exists in both, writeln exists only in std.stdio.Use named imports to pick which write you want.
It does seem a little silly to have a name clash with such a commonly used function. Would it not be better to rename std.file.write to something like writeFile and deprecate the current name?