I ignored that effect in my calculation. However, the voltage at drain of Ṃ̣̣̣̣̣̣̣̀̀9 (Vg) is not at ground in ac model.Because if we neglecting channel length modulation, the impudence looking into the M9 source is indeed equal to 1/gm.
For example, in your picture, if the voltage at D is zero, then the input impedance is indeed 1/gm. But actually, it is not zero and Zin = RD + 1/gm.
Ah, I realize my mistake now. Zin ₫ Vx/Ix is still 1/gm. I did draw the model as in your picture. However, I also make a mistake in calculating Zin. I thought Zin is only equal to 1/gm if VD = 0V.

