Writing SOPs for the IT department involves identifying the purpose and scope, involving relevant stakeholders, defining the process flow, documenting roles and responsibilities, including key guidelines and best practices, providing references and resources, reviewing, revising, and approving, and communicating and training.