So, the ground from the board, the source pin on the mosfet and the fan are going to the ATX ground. All the others are going to a GND pin on the board
I hope those two ground systems are connected together somehow or it will never work.
You mean I should use a completely unrelated ground, right?
No.
See http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html