The movie you're talking about is Super 8. The horror film was directed by J. J. Abrams and produced by Steven Spielberg. It was released in 2011 and it starred Joel Courtney, Elle Fanning and Kyle Chandler.
Steven Spielberg is a director, not a writer....you might be thinking of James Cameron who writes & direct....wait. I take that back...he did write early in his career but not like James Cameron does now.