Just note that using the chain rule you get
$
\left(\frac{\partial\log(\det(X_{i\times i}))}{\partial X}\right)_{lg}=
\left(\frac{\partial\log(\det(X_{i\times i}))}{\partial X_{i\times i}}\frac{\partial X_{i\times i}}{\partial X}\right)_{lg}$
It remains to compute $\frac{\partial X_{i\times i}}{\partial X}$ and this is easily done considering that
$\left(\frac{\partial X_{i\times i}}{\partial X}\right)_{lj}=\frac{\partial X_{i\times i}}{\partial X_{lj}}=\begin{cases}1\ \ \text{if}\ l,j\le i\\ 0\end{cases}=\begin{pmatrix} &I_{i}&0_{n-i}\\
&0_{n-i}&0_{i}\end{pmatrix}$
Using the result you state at the start of your question we get:
$\frac{\partial\log(\det(X_{i\times I}))}{\partial X}=\begin{pmatrix} &(X_{i\times i}^{-1})^T&0_{n-i}\\
&0_{n-i}&0_{i}\end{pmatrix}$
This is true in general: whenever you consider a function restricted to $X_{i\times i}$, the derivative is going to be: $\frac{\partial f(X_{i\times i})}{\partial X}=\begin{pmatrix} &f'(X_{i\times i})&0_{n-i}\\
&0_{n-i}&0_{i}\end{pmatrix}$