Upgrading or reinstalling hacs not working

i am trying to update hacs on a supervised HA installation, after clicking update and restart HA it still displays the old version.
When i try to reinstall it manually i get this:

Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2017796 (1.9M) [application/octet-stream]
hacs.zip: Permission denied

Cannot write to ‘hacs.zip’ (Permission denied).

my local hassio dir:

pi@raspberrypi:/usr/share/hassio $ ls -la
total 120
drwxr-xr-x  12 root root   4096 Jul 16 08:20 .
drwxr-xr-x 101 root root   4096 Jul 13 13:57 ..
drwxr-xr-x   6 root root   4096 Jul 13 14:01 addons
-rw-------   1 root root  26195 Jul 16 08:20 addons.json
drwxr-xr-x   3 root root   4096 Jul 13 13:57 apparmor
drwxr-xr-x   4 root root   4096 Jul 13 14:00 audio
-rw-------   1 root root     84 Jul 16 08:18 audio.json
drwxr-xr-x   2 root root   4096 Jul 16 06:40 backup
-rw-------   1 root root    216 Jul 16 08:18 cli.json
-rw-------   1 root root    293 Jul 16 08:20 config.json
drwxr-xr-x   2 root root   4096 Jul 16 08:18 dns
-rw-------   1 root root    119 Jul 16 08:18 dns.json
-rw-------   1 root root     22 Jul 13 15:20 docker.json
drwxrws--x  13 root root   4096 Jul 16 08:19 homeassistant
-rw-------   1 root root    540 Jul 16 08:19 homeassistant.json
-rw-------   1 root root    689 Jul 16 08:17 ingress.json
drwxr-xr-x   2 root root   4096 Sep 13  2020 media
-rw-------   1 root root     88 Jul 16 08:18 multicast.json
-rw-------   1 root root    221 Jul 16 08:18 observer.json
drwxrws--x   4 root users  4096 Feb  1  2021 share
drwxrws--x   2 root users  4096 Jul 11 14:32 ssl
-rw-------   1 root root    540 Jul 13 15:32 store.json
-rw-r--r--   1 root root      0 Jul 13 13:57 supervisor-version
drwxr-xr-x   2 root root   4096 Jul 16 06:40 tmp
-rw-------   1 root root    666 Jul 16 08:20 updater.json
pi@raspberrypi:/usr/share/hassio $

are these permissions correct? adding sudo gets me the same error