Yes, you changed the UID but never changed ownership of the
existing files.
It's alot faster to use xargs instead of the -exec option to 'find'.
find / -user 501 |xargs chown username
Although, in reality, 99+% of the files owned by 501 will be in the /Users/<old username> directory so...