You'll need another computer running Linux to fix that, then you can mount the SD card and run chown or chmod (not sure which you did

) to fix /home/pi on it.
If in doubt chmod 770 so all users can read an write to it, then you can boot the Pi and put it back how it should be using the gui.