The documentation of the write.table function shows that it has a parameter called file that takes the name of the file that is written. If you do not provide it, the output goes to the console. You can see the documentation with the command
That will produce a space delimited text file. The write.table function has a sep parameter that you can set to "," if you want a comma delimited file. Excel should be able to import either one of those formats.