Hey All I have finally fixed my Nexus 7 .Earlier It was just next to impossible to use it as it always used to shutdown within a few minutes.
So here is the trick that worked for me.
1) Cleared the cache partition and wiped Factory data
2) Flash the whole thing directly with the latest Factory...