Actually, I am facing a problem with a wrong implication/fallacy in complex number, which is
$\frac{1}{i}=\frac{1\times i}{i\times i}=\frac{i}{i^2}=\frac{i}{-1}=-i\implies i=-i$
I know I should not ask this kind of question here, but I want to learn the reason behind this type of unwanted fallacies.
Can anybody help me? Thanks for your assistance in advance.
Your argument is not a fallacy: it just proves that $i^{-1}=-i$, which is also clear from the fact that $$ (-i)i=-i^2=-(-1)=1 $$
However it's easy to make a true fallacy out of it: $$ \sqrt{-1}=\sqrt{\frac{1}{-1}}\color{red}{=} \frac{\sqrt{1}}{\sqrt{-1}}=\frac{1}{\sqrt{-1}}\tag{⚡} $$ Together with your argument this seems to prove that $i=-i$.
However, the step marked in red is fallacious. And it's very bad practice using the ambiguous symbols $\sqrt{-1}$: in the complex numbers there is $i$, such that $i^2=-1$, but writing it the other way may lead to false arguments. The problem is that it is not possible to define a function $z\mapsto\sqrt{z}$ such that, for all complex numbers $z_1$ and $z_2$, $$ \sqrt{z_1z_2}=\sqrt{z_1}\sqrt{z_2} $$ and the fallacious ⚡ uses such a (non existent) function.