How does the nitrogen cycle maintain a homeostatic balance in the environment?

Thank you so much!

Ap bio student