for FOO in ryan/smells-*; do
touch "$FOO"/rotten_eggs
done
This way $FOO contains the actual directory name, not the glob pattern. If there's more than one match, though, it will only contain the last one after the loop, so the array solution might be better for that case.