Dock preferences not saved
Since no one found an answer im gonna post my solution

The initial error that affected a bunch of other applications was a mismatch in the write permissions on the ~/Library/Application Support/ folder I deleted the said folder and restarted the application as the write permissions were not an issue in the get info section

Afterward my terminal froze . so i set it to bash/sh to fix it
KillAll dock and it worked. I cant exaclty explain what the issue was but i suggest that the system couldnt read the com.apple.Dock.plist