AWK, 7171 68 bytes
BEGIN{a="***";for(;i<7;i++;++i<8;){print(i<2||i>4i<3||i>5?" "a" ":i~3i~4?a"0"a:a"*"a)}} Removed some curly braces and used for(;++i<8;) instead of for(;i<7;i++). Could also use END instead of a BEGIN (-2 bytes; prints the output when the process is killed) but I suspect there are cleverer solutions to be found than this.