serial communication for two servos

These lines need semicolons:

...
  int i=0
...
        break
...
      buf[i]=inByte
      i++
...
  int k = 2
...

These lines almost certainly don't:

...
    if (Serial.available() > 0); 
...
  else if(motor == '2');
...