In awk the if block ends at the first semicolon or newline, unless it is enclosed by curly brackets.
Simply have one final print
if ($2 == 1)sub($2,"Sunday")
if ($2 == 2)sub($2,"Monday")
print
You can make it little faster by putting an else before a subsequent if
An elegant method is a mapping array
BEGIN {
split("Sunday Monday Tuesday ...", day)
FS=OFS=","
}
{
$2=day[$2]
print
}
EDIT: OFS must be set because an assignment to a field causes a reformatting (re-split on OFS).
EDIT2: split() splits ob FS by default. I use a space, so FS should be set to comma after that!