write ghost nodes before Jacobi loop is ended