Find all directories in the current directory and for each of them, find all files and give the user and group write permission.
find . -type d | xargs -n 1 -I {} sh -c 'find {} -exec chmod ug+w {} \;'