fix omitting nodes of boundary conditions in Mesh.write()

- add nodal_bcs argument to Mesh.from_data()