[guided]The main point is to prove that the only infinitesimal direction invisible to the mass map is the constant-weight direction, and that this direction has already been removed by imposing the zero-sum condition.
Let $L:\mathbb R^N\to\mathbb R^N$ denote the linear map whose matrix is $J\mathcal M_w$. By the hypothesis on the Jacobian, the entries of $L$ have the weighted graph Laplacian form
\begin{align*}
L_{ii}=\sum_{j\ne i}a_{ij}
\end{align*}
and
\begin{align*}
L_{ij}=-a_{ij}
\end{align*}
for $i\ne j$, where $a_{ij}=a_{ji}\ge 0$ and $a_{ij}>0$ exactly when $\{i,j\}$ is an edge of $G_w$.
We compute the quadratic form. For $\xi=(\xi_1,\dots,\xi_N)\in\mathbb R^N$, the diagonal part contributes
\begin{align*}
\sum_{i=1}^N \xi_i^2\sum_{j\ne i}a_{ij},
\end{align*}
and the off-diagonal part contributes
\begin{align*}
-\sum_{\substack{1\le i, j\le N, i\ne j}}a_{ij}\xi_i\xi_j.
\end{align*}
Using the symmetry $a_{ij}=a_{ji}$ and grouping the terms indexed by each unordered pair $\{i,j\}$ gives
\begin{align*}
\xi\cdot L\xi=\sum_{1\le i<j\le N}a_{ij}(\xi_i-\xi_j)^2.
\end{align*}
This identity is the weighted graph Laplacian energy identity. It shows at once that $L$ is positive semidefinite.
Now suppose $\xi\in\ker L$. Then $L\xi=0$, so $\xi\cdot L\xi=0$. By the energy identity,
\begin{align*}
0=\sum_{1\le i<j\le N}a_{ij}(\xi_i-\xi_j)^2.
\end{align*}
Each summand is nonnegative, so every summand with $a_{ij}>0$ must vanish. Therefore $\xi_i=\xi_j$ whenever $\{i,j\}$ is an edge of $G_w$. Since $G_w$ is connected, any two vertices can be joined by an edge path. Repeating the equality along such a path gives $\xi_i=\xi_j$ for all $i,j\in\{1,\dots,N\}$. Hence $\xi$ is a constant vector, meaning
\begin{align*}
\xi\in\operatorname{span}\{\mathbf 1\}.
\end{align*}
Conversely, $L\mathbf 1=0$ because every row sum of a graph Laplacian is zero. Thus
\begin{align*}
\ker L=\operatorname{span}\{\mathbf 1\}.
\end{align*}
Finally restrict to $H$. If $\xi\in H\cap\ker L$, then $\xi=\alpha\mathbf 1$ for some $\alpha\in\mathbb R$, and the condition $\xi\in H$ gives
\begin{align*}
0=\sum_{i=1}^N \xi_i=\sum_{i=1}^N \alpha=N\alpha.
\end{align*}
Because $N\ge 2$, in particular $N\ne 0$, we get $\alpha=0$. Therefore the restricted map $L|_H:H\to H$ is injective. The space $H$ has finite dimension $N-1$, so an injective linear map from $H$ to itself is also surjective. Hence $DF_w=L|_H$ is a linear isomorphism.[/guided]