sketched the code for SMB write, no test yet
SMB write compiles
SMB write works for 670 tet mesh and valgrind passes