While there is a lot of overlap between the two concepts, writing mechanics usually refers to the technical tools of writing, while writing conventions refer to how writing is usually done in various instances. There are different writing conventions for different purposes (journalism, academia, fiction, etc), but writing mechanics are fundamental for all forms of writing.