To modify the department for a Staff, follow the below path.
HR ---> Staff Details ---> Create Staff Details ---> Select [Branch] and click on [Get Staff] ---> Click on "Edit Basic Details" against the Staff ---> Select the "Staff Department" from the Drop-down list ---> Click on Next ---> Click on "Update & Continue".