it seems that your HR is doing what they should do.
by regulation, HR is responsalbe for your tax issue. I also faced some problem as you mentioned before. At beginning, I also felt unhappy that they would hold my salary for income tax. however, after I proved that I still stayed in Singapore after resignation. they paid me on the day I left.